package edu.iiitb.studentinfo.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

import edu.iiitb.studentinfo.service.LoginService;


public class Student {
	private int studentId;
	
	private String userName;
	private String password;
	private String firstName;
	private String lastName;
	private String RollNo;
	private int specializationId;
	private String specialization;
	private String email;
	private String phone;
		
	private String photoPath;
	private ArrayList<Friend> friends;
	private ArrayList<Mark> marks;
	
	// constructor
	public Student(){
		
	}
	
	public Student(int userId) {
		this.studentId = userId;
	}
	
	
	
	public void loadStudentInformation() {
		
	}
	
	public void loadStudentPhoto() {
		
	}
	
	public void loadStudentMarks() {
		
	}
	
	public void loadStudentSpecialization() {
		
	}
	
	public void loadStudentAnnouncements() {
		
	}
	
	public void loadStudentFriendlist() {
		
	}
	
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserName() {
		return userName;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword() {
		return password;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}
	public int getStudentId() {
		return studentId;
	}
	public void setSpecialization(String specialization) {
		this.specialization = specialization;
	}
	public String getSpecialization() {
		return specialization;
	}
	public void setRollNo(String rollNo) {
		RollNo = rollNo;
	}
	public String getRollNo() {
		return RollNo;
	}
	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}
	public String getPhotoPath() {
		return photoPath;
	}
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public int getSpecializationId() {
		return specializationId;
	}

	public void setSpecializationId(int specializationId) {
		this.specializationId = specializationId;
	}
	public void setFriends(ArrayList<Friend> friends) {
		this.friends = friends;
	}

	public ArrayList<Friend> getFriends() {
		return friends;
	}

	public void setMarks(ArrayList<Mark> marks) {
		this.marks = marks;
	}

	public ArrayList<Mark> getMarks() {
		return marks;
	}
	
	public String toString()
    {
        return "First Name: " + this.getFirstName() + " | " +
        " Last Name:  " + this.getLastName() + " | " +
        " Roll Number: " + this.getRollNo() + " | " +
        " specialization: " + this.getSpecialization() + " | " +
        " email: " + this.getEmail() + " | " +
        " phone: " + this.getPhone();
        
    }
	
	
}
